#include <retro.h>
#include "player.h"
#include "player.texture.h"

using namespace Retro::Player::Graphic;

Texture::Texture()
{
  mTexture  = NULL;
}

VOID Texture::init(Display::DisplayDevice* iDevice)
{
}

VOID Texture::uninit(Display::DisplayDevice* iDevice)
{
  mTexture->unref();
  mTexture = NULL;
}

VOID Texture::render(
  Display::DisplayDevice* iDevice,
  const Geom::Bounds& iDest,
  const Geom::Bounds& iSource,
  COLOR iColor
  )
{
  iDevice->beginBatch(mTexture);
  iDevice->addBatch(iDest, &iSource, iColor);
}
